package com.vrsys.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class Order implements Serializable{
    private static final long serialVersionUID = 4216755471827781644L;
    private long orderId;
    private String orderNo;
    private short orderStatus; // 0: pending payment; 1: payed; 2: not consumed yet; 3: canceled; 4: consumed;
    private Date orderCreateTime; // Date(6)
    private Date orderConsumeTime;
    private String orderDisplayTime; // Date(6)
    private int userId;
    private List<LineItem> lines;
    private BigDecimal amount;

    public long getOrderId() {
        return orderId;
    }
    public void setOrderId(long orderId) {
        this.orderId = orderId;
    }
    public String getOrderNo() {
        return orderNo;
    }
    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }
    public short getOrderStatus() {
        return orderStatus;
    }
    public void setOrderStatus(short orderStatus) {
        this.orderStatus = orderStatus;
    }
    public Date getOrderCreateTime() {
        return orderCreateTime;
    }
    public void setOrderCreateTime(Date orderCreateTime) {
        this.orderCreateTime = orderCreateTime;
    }
    public Date getOrderConsumeTime() {
        return orderConsumeTime;
    }
    public void setOrderConsumeTime(Date orderConsumeTime) {
        this.orderConsumeTime = orderConsumeTime;
    }
    public String getOrderDisplayTime() {
        return orderDisplayTime;
    }
    public void setOrderDisplayTime(String orderDisplayTime) {
        this.orderDisplayTime = orderDisplayTime;
    }
    public int getUserId() {
        return userId;
    }
    public void setUserId(int userId) {
        this.userId = userId;
    }
    public List<LineItem> getLines() {
        return lines;
    }
    public void setLines(List<LineItem> lines) {
        this.lines = lines;
    }
    public BigDecimal getAmount() {
        return amount;
    }
    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }
}
